import request from '@/utils/request'

// 查询任务指派列表
export function listAssignment(query) {
  return request({
    url: '/ehr/assignment/list',
    method: 'get',
    params: query
  })
}

// 查询任务指派详细
export function getAssignment(data) {
  return request({
    url: '/ehr/assignment/findOne' ,
    method: 'post',
    data:data
  })
}

// 新增任务指派
export function addAssignment(data) {
  return request({
    url: '/ehr/assignment',
    method: 'post',
    data: data
  })
}

// 修改任务指派
export function updateAssignment(data) {
  return request({
    url: '/ehr/assignment',
    method: 'put',
    data: data
  })
}

// 删除任务指派
export function delAssignment(data) {
  return request({
    url: '/ehr/assignment/',
    method: 'delete',
    data: data
  })
}

